<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$flux = new flux();
$flux->addPulsation(10);
$flux->addPulsation(3);
$flux->addPulsation(8);

$machine=new machine();
$machine->observe($flux);

while(true) {
    sleep(0.2);
    $flux->pulse();
    $tabSpectrogramme = $machine->getTabFrequencesTrouvees();
    echo "\n".implode(',', $tabSpectrogramme);
}

//Un simple tableau d'enditer